cmake_minimum_required(VERSION 3.0.0)
project(HttpDemo VERSION 0.1.0 LANGUAGES C CXX)

get_filename_component(SOLUTION_DIR "../../" ABSOLUTE)
message("Solution directory: ${SOLUTION_DIR}")

get_filename_component(MODULES_DIR "${SOLUTION_DIR}/modules" ABSOLUTE)
get_filename_component(INCLUDE_DIR "${SOLUTION_DIR}/include" ABSOLUTE)

message("Include directory: ${INCLUDE_DIR}")


list(APPEND CMAKE_MODULE_PATH "${SOLUTION_DIR}/cmake")  
include(Functions)

include_directories(${INCLUDE_DIR})

set(CURL_LIB_DIR "${MODULES_DIR}/curl")

message("Link Dir : ${CURL_LIB_DIR}")
link_directories(${CURL_LIB_DIR})

add_executable(HttpDemo main.cpp)

target_link_libraries(HttpDemo "curl")

copy_file(${MODULES_DIR}/curl/libcurl.dll build)